package com.bonuo.saas.service.impl;

import com.bonuo.saas.domain.ResearchProjectQuery;
import com.bonuo.saas.mapper.ResearchProjectQueryMapper;
import com.bonuo.saas.service.ResearchProjectQueryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ResearchProjectQueryServiceImpl implements ResearchProjectQueryService {
    @Autowired
    private ResearchProjectQueryMapper researchProjectQueryMapper;
    @Override
    public List<ResearchProjectQuery> selectResearchProjectQueryList(ResearchProjectQuery researchProjectQuery) {
        return researchProjectQueryMapper.selectResearchProjectQueryList(researchProjectQuery);
    }

    @Override
    public int insertResearchProjectQuery(ResearchProjectQuery researchProjectQuery) {
        return researchProjectQueryMapper.insertResearchProjectQuery(researchProjectQuery);
    }

    @Override
    public int updateResearchProjectQuery(ResearchProjectQuery researchProjectQuery) {
        return researchProjectQueryMapper.updateResearchProjectQuery(researchProjectQuery);
    }

    @Override
    public int deleteResearchProjectQueryById(Integer id) {
        return researchProjectQueryMapper.deleteResearchProjectQueryById(id);
    }

    @Override
    public Integer selectResearchProjectQueryPasswordByQueryId(Integer id) {
        return researchProjectQueryMapper.selectResearchProjectQueryPasswordByQueryId(id);
    }
}
